const DEV_AGENT = '/mall'
const API = {
    //跨域配置代理名称
    DEV_AGENT: DEV_AGENT,
    //接口根目录
    BSAE_URL: 'http://47.96.151.84:8082/wx/',
    //首页详情数据接口
    GET_HOME_INFO: DEV_AGENT + '/home/index',
    //分类页面数据接口
    GET_CATALOG_INFO: DEV_AGENT + 'catalog/index',
    //分类目录当前分类数据接口
    GET_CATALOG_CURRENT: DEV_AGENT + 'catalog/current',
    //获得商品列表
    GET_GOODS_LIST: DEV_AGENT + 'goods/list',
    //获得商品的详情
    GET_GOODS_DETAIL: DEV_AGENT + 'goods/detail',
    //品牌列表
    GET_BRAND_LIST: DEV_AGENT + 'brand/list',
    //品牌详情
    GET_BRAND_DETAIL: DEV_AGENT + 'brand/detail',
    //账号注册
    POST_REGISTER: DEV_AGENT + 'auth/register',
    // 账号登录接口 
    POST_AUTH_LOGIN: DEV_AGENT + '/auth/login',
    //账号登出
    POST_AUTH_LOGOUT: DEV_AGENT + 'auth/logout',
    //用户信息查询接口
    GET_AUTH_INFO: DEV_AGENT + 'auth/info',
    //添加或取消收藏
    POST_COLLECT_ADDORDELETE: DEV_AGENT + 'collect/addordelete',
    //收藏列表
    GET_COLLECT_LIST: DEV_AGENT + 'collect/list',
    // 点击立即购买商品缓存购买信息
    POST_CART_FASTADD: DEV_AGENT + 'cart/fastadd',
    //添加商品到购物车
    POST_CART_ADD: DEV_AGENT + 'cart/add',
    //获取购物车的数据
    GET_CART_INDEX: DEV_AGENT + 'cart/index',
    //删除购物车的商品
    POST_CART_DELETE: DEV_AGENT + 'cart/delete',
    //更新购物车的商品
    POST_CART_UPDATE: DEV_AGENT + 'cart/update',
    //获取购物车商品件数
    GET_CART_GOODSCOUNT: DEV_AGENT + 'cart/goodscount',
    //选择或取消选择商品
    POST_CART_CHECKED: DEV_AGENT + 'cart/checked',
    //下单前信息确认
    GET_CART_CHECKOUT: DEV_AGENT + 'cart/checkout',
    //提交订单
    POST_ORDER_SUBMIT: DEV_AGENT + 'order/submit',
    //订单列表
    GET_ORDER_LIST: DEV_AGENT + 'order/list',
    //订单支付
    POST_ORDER_PAY: DEV_AGENT + 'order/pay',
    //订单详情
    GET_ORDER_DETAIL: DEV_AGENT + 'order/detail',
    //取消订单
    POST_ORDER_CANCEL: DEV_AGENT + 'order/cancel',
    //退款取消订单
    POST_ORDER_REFUND: DEV_AGENT + 'order/refund',
    //删除订单
    POST_ORDER_DELETE: DEV_AGENT + 'order/delete',
    //确认收货
    POST_ORDER_CONFIRM: DEV_AGENT + 'order/confirm',
    //收获地址详情
    GET_ADDRESS_DETAIL: DEV_AGENT + 'address/detail',
    //收货地址列表
    GET_ADDRESS_LIST: DEV_AGENT + 'address/list',
    //保存收货地址
    POST_ADDRESS_SAVE: DEV_AGENT + 'address/save',
    //删除收货地址
    POST_ADDRESS_DELETE: DEV_AGENT + 'address/delete',
    //对订单商品添加评论
    POST_COMMENT_POST: DEV_AGENT + 'comment/post',
    //评论列表
    GET_COMMENT_LIST: DEV_AGENT + 'comment/list',
    //评论总数
    GET_COMMENT_COUNT: DEV_AGENT + 'comment/count',
    //删除评价
    POST_COMMENT_DELETE: DEV_AGENT + 'comment/delete',
    //足迹列表
    GET_FOOTPRINT_LIST: DEV_AGENT + 'footprint/list',
    //删除足迹
    POST_FOOTPRINT_DELETE: DEV_AGENT + 'footprint/delete',
    //用户信息查询接口
    GET_AUTO_INFO: DEV_AGENT + 'auth/info',
    //用户信息重置
    POST_AUTO_UPDATEINFO: DEV_AGENT + 'auth/updateInfo',
    //账号密码重置
    POST_AUTO_RESET: DEV_AGENT + 'auth/updateInfo',
    //获取默认、热门、历史关键字
    GET_SEARCH_INDEX: DEV_AGENT + 'search/index',
    //清除搜索历史
    POST_SEARCH_CLEARHISTORY: DEV_AGENT + 'search/clearhistory'
}

module.exports = API